import { createRouter, createWebHashHistory, createWebHistory } from "vue-router";

const routes = [
  {
    path: '/',
    children: [
      {
        path: '/',
        name: '主页', 
        component: () => import('@/views/release.vue'),
        meta: {title: '主页'}
      },
      {
        path: '/admin',
        name: "admin", 
        meta: {title: 'admin'},
        component: () => import("@/views/admin.vue"),
      }
    ]
  },
];


const router = createRouter({
  history: createWebHistory(),
  routes,
});

export default router;
